package GAM
{
	import flash.events.Event;
	import flash.display.Loader;
	import flash.net.URLRequest
	public class snakebody extends node
	{
		private var loader:Loader=new Loader();
		
		public function snakebody()
		{
			super();
		}
		override public function init():void
		{
			loader.load(new URLRequest("image/body.jpg"));
			
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE,oncomplete);
			
		}
		public function oncomplete(e:Event):void
		{
			addChild(loader);
			loader.width=25;
			loader.height=25;
			
		}
	}
}